<?php
$a=array('学号'=>'243110301','姓名'=>'白晓萌','性别'=>'女','电话'=>'12345674567',);
for($i=0;$i<6;++$i){
    echo $i,'. ', $a[$i],"\n";
}
echo "显示数组各个元素key或value的值\n";
foreach ($a as $k=>$v){
    echo $k,'. ',$v,"\n";
}